/*******************************************************************************
 * Copyright (c) 2023. 山东新北洋信息技术股份有限公司 保留所有权利。
 *
 ******************************************************************************/

package online.xuping.thousandsOfWorlds.common;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 类的说明
 *
 * @module
 * @Author xuping2
 * @Date 2022/6/24 13:14
 */
@Data
public class BaseEntity {

    // 当前页码
    @ApiModelProperty(value = "页数", required = false)
    private Integer page = 1;
    // 每页的大小
    @ApiModelProperty(value = "行数", required = false)
    private Integer size = 1;
    /**
     * 搜索值
     */
    @ApiModelProperty(value = "行数", required = false, hidden = true)
    private String searchValue;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者", required = false, hidden = true)
    private String createUserName;

    /**
     * 创建者ID
     */
    @ApiModelProperty(value = "创建者ID", required = false, hidden = true)
    private Integer createUserId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "行数", required = false, hidden = true)
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "行数", required = false, hidden = true)
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 更新人用户id
     */
    @ApiModelProperty(value = "更新人用户id")
    private Integer updateUserId;

    /**
     * 更新人名称
     */
    @ApiModelProperty(value = "更新人名称")
    private String updateUserName;
}
